package com.zhentao.controller;

import com.zhentao.model.common.dtos.ResponseResult;
import com.zhentao.model.common.pojo.coupon.CdzExceptionalRetroaction;
import com.zhentao.service.ICdzExceptionalRetroactionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author mp
 * @since 2024-12-18
 */
@RestController
@RequestMapping("/admin/exceptional")
public class CdzExceptionalRetroactionController {
    @Autowired
    private ICdzExceptionalRetroactionService cdzExceptionalRetroactionService;
//    查询所有的异常信息
    @GetMapping("/selectAllExeception")
    public ResponseResult selectAllExeception(){
       return cdzExceptionalRetroactionService.selectAll();
    }

//    修改异常信息
    @PostMapping("/update")
    public ResponseResult update(@RequestBody CdzExceptionalRetroaction cdzExceptionalRetroaction){
       return cdzExceptionalRetroactionService.updateex(cdzExceptionalRetroaction);
    }


}
